<?xml version="1.0" ?>

<container xmlns="http://symfony.com/schema/dic/services"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">

    <parameters>
        <parameter key="assetic.twig_extension.class">Symfony\Bundle\AsseticBundle\Twig\AsseticExtension</parameter>
        <parameter key="assetic.twig_formula_loader.class">Assetic\Extension\Twig\TwigFormulaLoader</parameter>
    </parameters>

    <services>
        <service id="assetic.twig_extension" class="%assetic.twig_extension.class%" public="false">
            <tag name="twig.extension" />
            <tag name="assetic.templating.twig" />
            <argument type="service" id="assetic.asset_factory" />
            <argument type="service" id="templating.name_parser" />
            <argument>%assetic.use_controller%</argument>
            <argument>%assetic.twig_extension.functions%</argument>
            <argument>%assetic.bundles%</argument>
            <argument type="service" id="assetic.value_supplier" on-invalid="null" />
        </service>
        <service id="assetic.twig_formula_loader" class="%assetic.cached_formula_loader.class%" public="false">
            <tag name="assetic.formula_loader" alias="twig" />
            <tag name="assetic.templating.twig" />
            <argument type="service" id="assetic.twig_formula_loader.real" />
            <argument type="service" id="assetic.config_cache" />
            <argument>%kernel.debug%</argument>
        </service>
        <service id="assetic.twig_formula_loader.real" class="%assetic.twig_formula_loader.class%" public="false">
            <tag name="assetic.templating.twig" />
            <tag name="monolog.logger" channel="assetic" />
            <argument type="service" id="twig" />
            <argument type="service" id="logger" on-invalid="ignore" />
        </service>
    </services>
</container>
